from django.urls import path
from . import views

urlpatterns = [
    path('', views.index),
    # 出版社路由
    path('publisher/list.html', views.publisher_list),
    path('publisher/add.html', views.publisher_add),
    path('publisher/edit.html', views.publisher_edit),
    path('publisher/delete.html', views.publisher_delete),
    path('publisher/spider.html', views.publisher_spider),
    path('publisher/search.html', views.publisher_search),
    # 图书管理对应的路由
    path('book/list.html', views.book_list),
    path('book/spider.html', views.book_spider),
    path('book/add.html', views.book_add),
    path('book/delete.html', views.book_delete),
    path('book/edit.html', views.book_edit),
    path('book/search.html', views.book_search),
    # 作者相关的路由
    path('author/add.html', views.author_add),
    path('author/delete.html', views.author_delete),
    path('author/edit.html', views.author_edit),
    path('author/list.html', views.author_list),
    path('author/search.html', views.author_search),
    path('author/books.html', views.author_books),
]
